package com.example.redistest.entity;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

import java.io.IOException;
import java.io.Serializable;
import java.net.URL;

public class User implements Serializable {

    private String name;
    private Integer age;

    public User(String name,Integer age){
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public static void main(String[] args) throws IOException {

       // new ExecutorService();
       // Callable


        Document parse = Jsoup.parse(new URL("http://www.ip138.com/ips1388.asp?ip=61.135.169.125&action=2"), 5000);
        Elements select = parse.select(".ul1 li");
        Element element = select.get(0);
        System.out.print(element.text());

        //http://wwww.baiud.com/ip=11111&user_id=sdfsdff&sgin=23424424

    }
}
